package com.luych.toolbox.docker.service.entity;

import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Entity
@Table(name = "docker_stat")
public class DockerStat extends BaseEntity {

    @Column(name = "server_id")
    private String serverId;
    @Column(name = "container_id")
    private String containerId;
    @Column(name = "cpu_usage")
    private BigDecimal cpuUsage;
    @Column(name = "mem_usage")
    private BigDecimal memUsage;
    @Column(name = "mem_used")
    private Long memUsed;
    @Column(name = "mem_limit")
    private Long memLimit;
    @Column(name = "net_in")
    private Long netIn;
    @Column(name = "net_out")
    private Long netOut;
    @Column(name = "block_in")
    private Long blockIn;
    @Column(name = "block_out")
    private Long blockOut;

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getContainerId() {
        return containerId;
    }

    public void setContainerId(String containerId) {
        this.containerId = containerId;
    }

    public BigDecimal getCpuUsage() {
        return cpuUsage;
    }

    public void setCpuUsage(BigDecimal cpuUsage) {
        this.cpuUsage = cpuUsage;
    }

    public BigDecimal getMemUsage() {
        return memUsage;
    }

    public void setMemUsage(BigDecimal memUsage) {
        this.memUsage = memUsage;
    }

    public Long getMemUsed() {
        return memUsed;
    }

    public void setMemUsed(Long memUsed) {
        this.memUsed = memUsed;
    }

    public Long getMemLimit() {
        return memLimit;
    }

    public void setMemLimit(Long memLimit) {
        this.memLimit = memLimit;
    }

    public Long getNetIn() {
        return netIn;
    }

    public void setNetIn(Long netIn) {
        this.netIn = netIn;
    }

    public Long getNetOut() {
        return netOut;
    }

    public void setNetOut(Long netOut) {
        this.netOut = netOut;
    }

    public Long getBlockIn() {
        return blockIn;
    }

    public void setBlockIn(Long blockIn) {
        this.blockIn = blockIn;
    }

    public Long getBlockOut() {
        return blockOut;
    }

    public void setBlockOut(Long blockOut) {
        this.blockOut = blockOut;
    }
}
